﻿#region Usings

using System;

#endregion

namespace SilverBox.Extensions
{
    public static class ReflectionExtensions
    {
        public static bool IsOrIsBasedOn(this Type obj, Type compare)
        {
            return compare.IsSubclassOf(obj) || compare == obj;
        }
    }
}